<%@ Assembly Name="Microsoft.SharePoint.ApplicationPages, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"%>
<%@ Assembly Name="zevenseas.LifeCycleManagement.ApplicationPages, Version=1.0.0.0, Culture=neutral, PublicKeyToken=4306074270f0265a" %>

<%@ Page Language="C#" MasterPageFile="~/_admin/admin.master" Inherits="zevenseas.LifeCycleManagement.ApplicationPages.Settings" %>

<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="wssuc" TagName="InputFormSection" src="~/_controltemplates/InputFormSection.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="InputFormControl" src="~/_controltemplates/InputFormControl.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="ButtonSection" src="~/_controltemplates/ButtonSection.ascx" %>
<%@ Register TagPrefix="wssawc" Namespace="Microsoft.SharePoint.WebControls"  Assembly="Microsoft.SharePoint, Version=12.0.0.0,  Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>


<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>

<asp:Content ID="Content1" ContentPlaceHolderId="PlaceHolderPageTitle" runat="server" >Lifecycle Management Administration Page | Timer job Configuration
<asp:Literal ID="LiteralPageTitle" runat="server" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderId="PlaceHolderMain" runat="server" >
  <style type="text/css">
    table.ms-propertysheet {
      height: 100%;
    }
  </style>
  <table cellspacing="0" cellpadding="0" border="0" class="ms-settingsframe">
    <tr>
      <td width="100%" colspan="4" style="padding-top: 0px;">
        <table class="ms-pageinformation" width="100%" cellpadding="0" cellspacing="0">
          <tr>
            <td valign="top" style="padding: 10px;" width="100%" height="100px">
              <table height="100%" width="100%" id="idItemHoverTable">
                <tr>
                  <th scope="col" colspan="2" style="padding-bottom: 8px;">
                    <span class="ms-linksectionheader">
                      <h3 class="ms-standardheader">
                        <SharePoint:EncodedLiteral
                          ID="EncodedLiteral3"
                          runat="server"
                          Text="Timer job Configuration"
                          EncodeMethod='HtmlEncode' />
                      </h3>
                    </span>
                  </th>
                </tr>
               
              </table>
            </td>
          </tr>
        </table>
      </td>
    </tr>
    <tr>
      <td valign="top" style="padding: 4px 0px 4px 0px;" height="100%">
  	<table width="100%" border="0" cellspacing="0" cellpadding="0" class="ms-propertysheet">
          <wssuc:InputFormSection Title="WebApplication selection" id="fmWebApplication"
            Description="Specify on WebApplication you install and configure the site deletion capture functionality" runat="server">		
            <template_inputformcontrols>            
              <wssuc:InputFormControl runat="server">
                <Template_Control>
			        <SharePoint:WebApplicationSelector ID="webApplicationSelector" runat="server" />
                </Template_Control>
              </wssuc:InputFormControl> 
               </template_inputformcontrols> 
          </wssuc:InputFormSection>
          <wssuc:InputFormSection Title="Lifecycle Settings" id="ifmLifeCycleSetting"
            Description="Specify the settings for the site's and web's LifeCycle" runat="server">
            <template_inputformcontrols>
             <wssuc:InputFormControl LabelText="Specify when a site is marked as 'unused' (in days)" runat="server">
              <Template_Control>
		        <wssawc:InputFormTextBox CssClass="ms-input" ID="txtTimePeriodUnused" Runat="server" Columns="5" Text="90" />
		            <SharePoint:InputFormCheckBox CssClass="ms-input" ID="cbxContentDate"
                      runat="server" LabelText="Check on Last Modified Content date?" />
                    <SharePoint:InputFormCheckBox CssClass="ms-input" ID="cbxSecurityDate"
                      runat="server" LabelText="Check on Last Modified Security date?" />
                    <SharePoint:InputFormCheckBox CssClass="ms-input" ID="cbxUsageDate"
                      runat="server" LabelText="Check on usage date?" />		
              </Template_Control>
            </wssuc:InputFormControl>
	   </template_inputformcontrols>
          </wssuc:InputFormSection>

	 <wssuc:InputFormSection Title="Lifecycle Notification settings" id="ifmLifeCycleNotifySetting"
            Description="Specify the details regarding notifying users of unused sites" runat="server">
		<template_inputformcontrols>
	            <wssuc:InputFormControl LabelText="Specify if you wish to mail site owners" runat="server">
			      <Template_Control>
				      <SharePoint:InputFormCheckBox CssClass="ms-input" ID="cbxMailOwner" runat="server" LabelText="Mail siteowner before locking/deleting?" />
		              </Template_Control>
        	    </wssuc:InputFormControl>
	            <wssuc:InputFormControl LabelText="Specify how long to wait before going to the next action step (eg. locking or deleting the site)" runat="server">
	        	      <Template_Control>
				    <wssawc:InputFormTextBox CssClass="ms-input" ID="txtTimePeriodMail" Runat="server" Columns="5" Text="30" />
		              </Template_Control>
	            </wssuc:InputFormControl>
		    <wssuc:InputFormControl LabelText="Specify the subject of the mail" runat="server">
	        	      <Template_Control>
					<wssawc:InputFormTextBox ID="txtMailSubject" RichText="false" runat="server" Width="100%"/>
		              </Template_Control>
	            </wssuc:InputFormControl>
	            <wssuc:InputFormControl LabelText="Specify the content of the mail" runat="server">
	        	      <Template_Control>
					<wssawc:InputFormTextBox ID="txtMailContent" RichText="true" RichTextMode="FullHtml" runat="server" TextMode="MultiLine" Rows="20"/>
		              </Template_Control>
	            </wssuc:InputFormControl>
	            	
		</template_inputformcontrols>
	 </wssuc:InputFormSection>


	   <wssuc:InputFormSection Title="Lifecycle Lock settings" id="ifmLifeCycleLockSetting"
		        Description="Specify the details regarding locking unused sites" runat="server">
		        <template_inputformcontrols>
	                    <wssuc:InputFormControl LabelText="Specify if you want to automatically lock sites" runat="server">
        		              <Template_Control>
				             <SharePoint:InputFormCheckBox CssClass="ms-input" ID="cbxLockSite" runat="server" LabelText="Lock site first before deleting?" />
		                      </Template_Control>
	                    </wssuc:InputFormControl>
	                    <wssuc:InputFormControl LabelText="Specify how long to wait before going to the next action step (eg. deleting the site) " runat="server">
        		              <Template_Control>
					        <wssawc:InputFormTextBox CssClass="ms-input" ID="txtTimePeriodLock" Runat="server" Columns="5" Text="30" />     
		                      </Template_Control>
	                    </wssuc:InputFormControl>	
		        </template_inputformcontrols>	     
	   </wssuc:InputFormSection>
	
	    <wssuc:InputFormSection Title="Lifecycle Deletion settings" id="ifmLifeCycleDeleteSetting"
		        Description="Specify the details regarding the deletion of unused sites" runat="server">
		        <template_inputformcontrols>		
	                     <wssuc:InputFormControl LabelText="Specify if to automatically delete sites" runat="server">
		                      <Template_Control>
				             <SharePoint:InputFormCheckBox CssClass="ms-input" ID="cbxDeleteSite" runat="server" LabelText="automatically delete sites?"/>		     
		                      </Template_Control>
        	            </wssuc:InputFormControl>		                     
		        </template_inputformcontrols>
         </wssuc:InputFormSection>
         
          <wssuc:ButtonSection runat="server">
            <Template_Buttons>
                <asp:Button runat="server" class="ms-ButtonHeightWidth" OnClick="OnClickOK" Text="Ok" id="btnOk"/>
            </Template_Buttons>
        </wssuc:ButtonSection> 
        </table>
	</td>
    </tr>
  </table>
<asp:Label id="output" runat="server"/>
</asp:Content>